Problems with tag O(q * (logr)^2)